package org.ddd.specification.catalog.bean;

public class Person {
    private final String name;
    private int age;

    public Person() {
        this("John Doe");
    }

    public Person(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public Person withAge(int age) {
        this.age = age;
        return this;
    }

    public int getAge() {
        return age;
    }
}